// Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)'

/*
* File: OverDrawColor.shader
* -----
* Description:
* -----
* Created  By: Aim 2021-07-01 22:54:01
* Modified By: Aim 2021-07-01 22:54:33
* -----
* HISTORY:
* Date      	By	Comments
* ----------	---	----------------------------------------------------------
*/


Shader "Aimin/OverDrawColor"
{
    SubShader
    {
        Tags { "Queue" = "Transparent" }
        
        ZTest Always
        ZWrite Off
        Blend One One

        Pass
        {
            CGPROGRAM

            #pragma vertex vert
            #pragma fragment frag
            #include "UnityCG.cginc"

            struct appdata
            {
                float4 vertex: POSITION;
            };
            struct v2f
            {
                float4 vertex: SV_POSITION;
            };

            v2f vert(appdata v)
            {
                v2f o;
                o.vertex = UnityObjectToClipPos(v.vertex);
                return o;
            }

            half4 _OverDrawColor;

            fixed4 frag(v2f i): SV_Target
            {
                return _OverDrawColor;
            }
            ENDCG

        }
    }
}